package life.mahu.community.mapper;

import java.util.List;
import java.util.Set;

import life.mahu.community.model.SensitiveWords;
import life.mahu.community.model.SensitiveWordsExample;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

public interface SensitiveWordsMapper {

    @Select("select distinct s.word from sensitive_words as s")
    Set<String> getAllSensitiveWords();

    long countByExample(SensitiveWordsExample example);

    int deleteByExample(SensitiveWordsExample example);

    int insert(SensitiveWords record);

    int insertSelective(SensitiveWords record);

    List<SensitiveWords> selectByExample(SensitiveWordsExample example);

    int updateByExampleSelective(@Param("record") SensitiveWords record, @Param("example") SensitiveWordsExample example);

    int updateByExample(@Param("record") SensitiveWords record, @Param("example") SensitiveWordsExample example);
}